﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace QuanserClient
{
    public class QuanserServer : IPEndPoint
    {


        /// <summary>
        /// Conexao localhost
        /// </summary>
        /// <param name="_port"> porta de entrada</param>
        public QuanserServer(Int32 _port)
            : base(IPAddress.Parse("127.0.0.1"), _port)
        {

        }
        /// <summary>
        /// Conexao com host
        /// </summary>
        /// <param name="_server">ip do servidor</param>
        /// <param name="_port"> porta de entrada</param>
        public QuanserServer(IPAddress _ipServer, Int32 _port)
            : base(_ipServer, _port)
        {

        }
        /// <summary>
        /// Conexao com host
        /// </summary>
        /// <param name="_nameServer">Nome do Servidor ex: localhost ou wwww.exemplo.com.br</param>
        /// <param name="_port">porta de entrada</param>
        public QuanserServer(String _nameServer, Int32 _port)
            : base(Dns.GetHostAddresses(_nameServer).First(), _port)
        {

        }

    }
}
